package org.linlinjava.litemall.admin.vo.full_gift;

import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.math.BigDecimal;
import java.util.List;

/**
 * @author wj
 * @date 2021/8/30 14:25
 */
public class AddGiftActiveVo {


    private Long id;

    @NotBlank(message = "活动名称不能为空")
    @Length(max = 40,message = "活动名称长度过长")
    private String activeName;

    private ActiveTime activeTime;

    @NotBlank(message = "活动商品不能为空")
    private String activeCommodityIds;

    @NotNull(message = "满金额不能为空")
    @DecimalMin(value = "0",message = "满金额不能小于0")
    private BigDecimal fullMoney;

    private Integer selectedNumber;

    @Size(min = 1,message = "商品列表不能为空")
    private List<GiftBean> giftList;

    @NotNull(message = "支持门店类型不能为空")
    private Integer supportType;

    @Size(min = 1,message = "门店不能为空")
    private List<Integer> shopIds;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getActiveName() {
        return activeName;
    }

    public void setActiveName(String activeName) {
        this.activeName = activeName;
    }

    public ActiveTime getActiveTime() {
        return activeTime;
    }

    public void setActiveTime(ActiveTime activeTime) {
        this.activeTime = activeTime;
    }

    public String getActiveCommodityIds() {
        return activeCommodityIds;
    }

    public void setActiveCommodityIds(String activeCommodityIds) {
        this.activeCommodityIds = activeCommodityIds;
    }

    public BigDecimal getFullMoney() {
        return fullMoney;
    }

    public void setFullMoney(BigDecimal fullMoney) {
        this.fullMoney = fullMoney;
    }

    public Integer getSelectedNumber() {
        return selectedNumber;
    }

    public void setSelectedNumber(Integer selectedNumber) {
        this.selectedNumber = selectedNumber;
    }

    public List<GiftBean> getGiftList() {
        return giftList;
    }

    public void setGiftList(List<GiftBean> giftList) {
        this.giftList = giftList;
    }

    public Integer getSupportType() {
        return supportType;
    }

    public void setSupportType(Integer supportType) {
        this.supportType = supportType;
    }

    public List<Integer> getShopIds() {
        return shopIds;
    }

    public void setShopIds(List<Integer> shopIds) {
        this.shopIds = shopIds;
    }
}
